home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1331 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  649 b   |  18 lines

  1. In article <30FD580D.4731@coewl.cen.uiuc.edu>, m-han3 says...
  2. >howard daniel joseph wrote:
  3. >> Can I perform simple maths (addition, division) between integers of
  4. >> different types? I'd assume so, right?
  5.  
  6. >Yes, you can.  But they will be converted according to the order of the
  7. >evaluation of the expression.  You may lose precision sometimes.
  8.  
  9. I thought when u perform some arithmetic on numbers of different types the 
  10. smaller type is upgraded (like if u add an int and a float, the int is 
  11. upgraded to a float before the arithmetic operation).  No precision would be 
  12. lost.  Is this correct?
  13.  
  14. --
  15. Consciousness: that annoying time between naps.
  16.  
  17.  
  18.